package com.wy.Service.impl;

import com.wy.Service.DengjService;
import com.wy.Service.ParkService;
import com.wy.dao.DengjDao;
import com.wy.dao.ParkDao;
import com.wy.pojo.Dengj;
import com.wy.pojo.Park;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service("parkServer")
@Transactional
public class ParkServerimpl implements ParkService {
    @Resource
    private ParkDao parkDao;

    @Override
        public List<Park> searchidAll(Integer parentid) {
        return parkDao.searchidAll(parentid);
    }

    @Override
    public void del(Integer id) {
        parkDao.deleteById(id);
    }
    @Override
    public void add(Park park) {
        parkDao.save(park);
    }



}
